package com.mmd.mybatis.config;

public interface CodeGeneratorConfig {

    /**
     * 项目目录名称
     */
    String projectDir = "/life-common/life-common-mybatis/";

    /**
     * 输出包名
     */
    String outputPackage = "com.mmd.mybatis.services";

    /**
     * 父包模块名
     */
    String parentModelName = "";

    /**
     * 实体类包名
     */
    String entityPackageName = "pojo.entity";

    /**
     * 数据访问层包名
     */
    String mapperPackageName = "mapper";

    /**
     * 数据访问层XML包名
     */
    String mapperXmlPackageName = "mapper.xml";

    /**
     * 业务逻辑层包名
     */
    String servicePackageName = "service";

    /**
     * 业务逻辑实现层包名
     */
    String serviceImplPackageName = "service.impl";

    /**
     * 界面层包名
     */
    String controllerPackageName = "controller";

    /**
     * 输出根目录绝对路径, 默认当前项目
     */
    String outputDir = System.getProperty("user.dir").concat(projectDir).concat("/src/main/java/");

    /**
     * 输出根目录资源绝对路径, 默认当前项目
     */
    String outputResourcesDir = System.getProperty("user.dir").concat(projectDir).concat("/src/main/resources/");

    /**
     * life_serve_goods
     * zLjbs5MKihmSyz7S
     *
     * life_serve_admin
     * y42YN5Y7jAN55j6N
     *
     * life_serve_dynamic
     *  life_dynamic
     * 4ZSDhCN4aBNxx5eS
     */

    String prefix = "life_serve_";

    String tableName = "life_serve_dynamic";

    String jdbcUrl = "jdbc:mysql://122.114.159.32:3306/"+tableName+"?useUnicode=true&characterEncoding=gbk&useSSL=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC";

    String username = "life_dynamic";

    String password = "4ZSDhCN4aBNxx5eS";

    String driverName = "com.mysql.cj.jdbc.Driver";

    /**
     * 查询所有表
     */
    String tables = "select table_name from information_schema.tables where table_schema='"+tableName+"'";
}
